[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Copies all of the items from the collection source to the array dest, starting
at the index destIndex.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static void Copy<T>( IEnumerable<T> source, T[] dest, int destIndex ) |
Visual Basic (Declaration) |
---|
Public Shared Sub Copy(Of T) ( _ source As IEnumerable(Of T), _ dest As T(), _ destIndex As Integer _ ) |
Visual C++ |
---|
public: generic<typename T> static void Copy ( IEnumerable<T>^ source, array<T>^ dest, int destIndex ) |
Parameters
- source
- IEnumerable<(Of <T>)>
The collection that provide the source items.
- dest
- array<T>[]()
The array to store the items into.
- destIndex
- Int32
The index to begin copying items to.
Type Parameters
- T
Exceptions
Exception | Condition |
---|---|
System..::ArgumentOutOfRangeException | destIndex is negative or greater than dest.Length. |
System..::ArgumentNullException | source or dest is null. |
System..::ArgumentException | The collection has more items than will fit into the array. In this case, the array has been filled with as many items as fit before the exception is thrown. |
See Also
Algorithms Class
Wintellect.PowerCollections Namespace